<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="template.xhtml">
	<ui:define name="title">Ingreso a la aplicacion</ui:define>
		<ui:define name="header">
		<ui:include src="encabezado.xhtml" />
	</ui:define>
	<ui:define name="content">
	
	
	
		<h:form id="formLogin">		
		
		<h:panelGrid columns="2" id="pnlAbmFactura">
		
		 <h:outputLabel for="user" value="User:" />
		  <h:inputText id="user" value="#{loginBean.user.usuario}"  required="true"/>
		
		<h:outputLabel for="pass" value="Password:" />
		<h:inputSecret id="pass" value="#{loginBean.user.contrasenia}"  required="true"/>
			<h:commandButton value="Login" action="#{loginBean.aceptar}" />
			
		
		</h:panelGrid>
		<h:outputText value="#{loginBean.mensajeError}" style="color:#{'red'};" />	
		</h:form>	
		

	</ui:define>
	<ui:define name="footer">
		<ui:include src="pie.xhtml" />
	</ui:define>
</ui:composition>
</html>